//创建路由模块
var express =require('express');
var router =express.Router();

//定义相关的路由
router.get('/', function (req, res) {
  res.render('index');
});
router.get('/login', function (req, res) {
  res.render('login');
});
router.get('/test', function (req, res) {
  res.sendFile(path.join(__dirname,'/public/temple/starter.html'));
});
router.get('/leaveapply', function (req, res) {
  res.render('leaveApply');
});
router.get('/overworkApply', function (req, res) {
  res.render('overworkApply');
});
router.get('/travelApply', function (req, res) {
  res.render('travelApply');
});
router.get('/myApply', function (req, res) {
  res.render('myApply');
});
router.get('/holidaySurplus', function (req, res) {
  res.render('holidaySurplus');
});

module.exports = router;